import request from '@/utils/request'

// 查询项目合同列表
export function listContract(query) {
    return request({
        url: '/project/contract/list',
        method: 'get',
        params: query
    })
}

// 查询项目合同详情
export function infoContract(id) {
    return request({
        url: '/project/contract/' + id,
        method: 'get',
    })
}

// 修改项目合同详情
export function updateContract(data) {
    return request({
        url: '/project/contract',
        method: 'put',
        data: data
    })
}

// 修改项目合同详情
export function synchronizeContract(data) {
    return request({
        url: '/project/contract',
        method: 'post',
        data: data
    })
}